package com.oba.king.datalib;

import java.util.Date;

import com.oba.base.service.BaseBo;
import com.oba.king.datalib.creditcontrol.CreditControl;
import com.oba.king.sysmanager.area.Area;

public class Customer extends BaseBo {
	private Long customerId;
	private Area area;
	private CreditControl creditControl;
	private String customerCode;
	private String customerName;
	private String customerShortName;
	private String customerAddress;
	private String customerPostcode;
	private AccountValues accountValue;
	private String customerPhone;
	private String customerFax;
	private String businessManager;
	private String mobilePhone;
	private String taxId;
	private String agentStatus ="Y";
	private String agentPosition;
	private String agentContactPerson;
	private String agentContactPhone;
	private Date updateDate;
	private String updater;
	private String infoSource;
	private String sellMethod;
	private String producer;
	private Date produceDate;
	private String remark;

	public Long getId() {
		return customerId;
	}

	public String getName() {
		// TODO Auto-generated method stub
		return customerName;
	}

	public Long getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Long customerId) {
		this.customerId = customerId;
	}

	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}

	public CreditControl getCreditControl() {
		return creditControl;
	}

	public void setCreditControl(CreditControl creditControl) {
		this.creditControl = creditControl;
	}

	public String getCustomerCode() {
		return customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getCustomerShortName() {
		return customerShortName;
	}

	public void setCustomerShortName(String customerShortName) {
		this.customerShortName = customerShortName;
	}

	public String getCustomerAddress() {
		return customerAddress;
	}

	public void setCustomerAddress(String customerAddress) {
		this.customerAddress = customerAddress;
	}

	public String getCustomerPostcode() {
		return customerPostcode;
	}

	public void setCustomerPostcode(String customerPostcode) {
		this.customerPostcode = customerPostcode;
	}

	public AccountValues getAccountValue() {
		return accountValue;
	}

	public void setAccountValue(AccountValues accountValue) {
		this.accountValue = accountValue;
	}

	public String getCustomerPhone() {
		return customerPhone;
	}

	public void setCustomerPhone(String customerPhone) {
		this.customerPhone = customerPhone;
	}

	public String getCustomerFax() {
		return customerFax;
	}

	public void setCustomerFax(String customerFax) {
		this.customerFax = customerFax;
	}

	public String getBusinessManager() {
		return businessManager;
	}

	public void setBusinessManager(String businessManager) {
		this.businessManager = businessManager;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public String getTaxId() {
		return taxId;
	}

	public void setTaxId(String taxId) {
		this.taxId = taxId;
	}

	public String getAgentStatus() {
		return agentStatus;
	}
	
	public String getStatusStr(){
		if(agentStatus!=null && !agentStatus.equals("")){
			if(agentStatus.equals("Y")){
				return "激活";
			}else if(agentStatus.equals("N")){
				return "过期";
			}
		}
		return "";
	}

	public void setAgentStatus(String agentStatus) {
		this.agentStatus = agentStatus;
	}

	public String getAgentPosition() {
		return agentPosition;
	}

	public void setAgentPosition(String agentPosition) {
		this.agentPosition = agentPosition;
	}

	public String getAgentContactPerson() {
		return agentContactPerson;
	}

	public void setAgentContactPerson(String agentContactPerson) {
		this.agentContactPerson = agentContactPerson;
	}

	public String getAgentContactPhone() {
		return agentContactPhone;
	}

	public void setAgentContactPhone(String agentContactPhone) {
		this.agentContactPhone = agentContactPhone;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getUpdater() {
		return updater;
	}

	public void setUpdater(String updater) {
		this.updater = updater;
	}

	public String getInfoSource() {
		return infoSource;
	}

	public void setInfoSource(String infoSource) {
		this.infoSource = infoSource;
	}

	public String getSellMethod() {
		return sellMethod;
	}

	public void setSellMethod(String sellMethod) {
		this.sellMethod = sellMethod;
	}

	public String getProducer() {
		return producer;
	}

	public void setProducer(String producer) {
		this.producer = producer;
	}

	public Date getProduceDate() {
		return produceDate;
	}

	public void setProduceDate(Date produceDate) {
		this.produceDate = produceDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
